package com.edu.entity;

import java.util.List;

public class PageBean<T> {
    private int conut;
    private int currentPage;//当前页
    private int pageCount;//总页输
    private int pageSize;
    private List<T> data;

    @Override
    public String toString() {
        return "PageBean{" +
                "conut=" + conut +
                ", currentPage=" + currentPage +
                ", pageCount=" + pageCount +
                ", pageSize=" + pageSize +
                ", data=" + data +
                '}';
    }
    public int getConut() {
        return conut;
    }

    public void setConut(int conut) {
        this.conut = conut;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public PageBean() {
    }

    public PageBean(int conut, int currentPage, int pageCount, int pageSize, List<T> data) {
        this.conut = conut;
        this.currentPage = currentPage;
        this.pageCount = pageCount;
        this.pageSize = pageSize;
        this.data = data;
    }
}
